<?php

declare(strict_types=1);

/**
 * @Author:     Frank
 * @contact     frank_hhm@163.com
 * @Date:       2023-02-07 13:16:43
 * @Last Modified time: 2023-02-07 13:43:52
 */
namespace app\common\enum\user;

use frank\base\BaseEnum;

/**
 * 枚举类
 * Class WaterSourceEnum
 * @package app\common\enum\user
 */
class WaterSourceEnum extends BaseEnum
{
    // 用户消费
    const ORDERPAY = 'order_pay';

    // 订单退款
    const ORDERREFUND = 'order_refund';

    // 用户充值
    const USERRECHARGE = 'user_recharge';

    // 业务员
    const ADMIN = 'admin';

    /**
     * 获取订单类型值
     * @return array
     */
    public static function data()
    {
        return [
            self::ORDERPAY => [
                'name' => '消费',
                'value' => self::ORDERPAY,
                'describe' => '用户消费：%s',
            ],
            self::ORDERREFUND => [
                'name' => '退款',
                'value' => self::ORDERREFUND,
                'describe' => '订单退款：%s',
            ],
            self::USERRECHARGE => [
                'name' => '充值',
                'value' => self::USERRECHARGE,
                'describe' => '用户充值：%s',
            ],
            self::ADMIN => [
                'name' => '平台',
                'describe' => '业务员 [%s] 操作[%s]',
                'value' => self::ADMIN,
            ],
        ];
    }
}

